package com.blockmeta.bbs.immodule.net.api;

import com.blockmeta.bbs.businesslibrary.net.pojo.BaseImResponse;
import com.blockmeta.bbs.immodule.net.pojo.IMCircleEntityBook;

import java.util.List;

import io.reactivex.Flowable;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * @author AirThor
 * @date 2019/3/29.
 */
public interface RecommendCircleApi {
    /**
     * 获取群
     * @param userId uid
     * @param groupType
     * @param groupPage 分页
     * @param groupCount 一页返回的数据量
     * @return 返回的数据
     */
    @GET("im/chatGroup/getChatGroupList")
    Flowable<BaseImResponse<List<IMCircleEntityBook>>> getRecommendCircle(@Query("userId") int userId, @Query("groupType") int groupType, @Query("groupPage") int groupPage, @Query("groupCount") int groupCount);

    /**
     * 获取推荐群
     * @param userId uid
     * @return 返回的数据
     */
    @GET("im/chatGroup/getHotChatGroupList")
    Flowable<BaseImResponse<List<IMCircleEntityBook>>> getHotChatGroupList(@Query("userId") int userId);
}
